package chap02.ClassData;

/**
 * Created by root on 2017/4/30.
 */
public class Person {
    private String lastName;//姓
    private String firstName;//名
    private int age;

    public Person(String last, String first, int a){
        lastName = last;
        firstName = first;
        age = a;
    }

    public void displayPerson(){
        System.out.print("    LastName: " + lastName);
        System.out.print(", First name: " + firstName);
        System.out.println(", Age: " + age);
    }

    public String getLast(){
        return lastName;
    }

    public static void main(String[] args) {
        String[] a = new String[5];
        System.out.println(a[0]);
    }

}
